package cn.xshi.common;

import cn.xshi.common.base.BaseAction;
import cn.xshi.common.base.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import cn.xshi.common.annotation.Auth;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @Desc 心跳
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@RestController
@Api(value = "心跳API",tags = "心跳API",description = "心跳API")
public class Heartbeat extends BaseAction {
    /**
     * 心跳
     * @return
     */
    @ApiOperation(value="心跳", notes="心跳")
    @GetMapping(value="/heartbeat")
    @Auth(value = "/heartbeat",authenticationType = Auth.AuthorizationType.NOT_REQUIRED_LOGIN)
    public BaseResult heartbeat(){
        return outAudStr(true);
    }
}
